-- GENERATED SPELL FOR [Mangal Crocolisk] --


function spell0_28002(pUnit, Event) --@Powerful Bite,n/a--
pUnit:FullCastSpellOnTarget(48287,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28002', 5258, 1)
end

function spell1_28002(pUnit, Event) --@Thick Hide,Self--
pUnit:FullCastSpellOnTarget(50502,pUnit)
pUnit:RegisterEvent('Sorts_28002', 593, 1)
end

function Sorts_28002(pUnit, Event)
local choix_sorts_28002 = math.random(0, 1)
if choix_sorts_28002 == 0 then
pUnit:RegisterEvent('spell0_28002', 1, 1)
end
if choix_sorts_28002 == 1 then
pUnit:RegisterEvent('spell1_28002', 1, 1)
end
end

function mob28002_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28002', math.random(1500, 3000), 1)
end

function mob28002_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28002_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28002_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28002, 1, 'mob28002_Action')
RegisterUnitEvent(28002, 2, 'mob28002_Leave')
RegisterUnitEvent(28002, 3, 'mob28002_Kill')
RegisterUnitEvent(28002, 4, 'mob28002_Die')
